package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Select;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Slf4j
//@Component
public class MyTask {

    @Scheduled(cron = "0/5 * * * * ?")
    public void execute_5S(){
        log.info("任务执行{}", LocalDateTime.now());
    }
}
